
#正则表达式
import re
if __name__ == '__main__':
    b=bool(re.match(r"^1[3-9]\d{9}$","13865997763"))
    print(b)
    b = bool(re.match(r"^do+g$", "Doog"))
    print(b)
    b = bool(re.match(r"^do+g$", "Doog",re.M|re.I))
    print(b)
    # alva-liu@xx.com
    email = bool(re.match(r"^\w+@\w+(\.\w+)*$", "bangzhao.liu@qq.com", re.M | re.I))
    print(email)
    pattern = re.compile(
        r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$"
    )
    e=bool(pattern.match("bangzhao.liu@qq.com"))
    print(e)

